package com.ecfront.dwr;

import com.ecfront.service.UserService;
import com.ecfront.service.impl.UserServiceImpl;

public class NameValdate {

	private UserService userService ;

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public boolean isHasName(String name){
		return userService.findUserByName(name);
	}
}
